convert the loaded object into an array