Change object to array