make sure content_type_id is an integer