Make ptr_cast_add_auto_to_object lint into hard error
#136764
Merged
ptr_cast_add_auto_to_object lint into hard error
#136764