Added utility method objectToArray()