Implemented object to array