Change format from object to array