Convert objects to Ruby Hashes