Renamed to_ptr to to_obj_ptr.