Avoid infinite recursion on .id_before_type_cast