change custom field to object