iProgrammer interview question

I was asked to convert an object into an Array