Fixed object to array convertion