Create hash#to_obj method