Fix is_const_context
, update check_for_cast
#72380
Merged
is_const_context
, update check_for_cast
#72380