Create obj-to-hash