Backport "Improve asExprOf
cast error formatting" to LTS
#20787
Merged
asExprOf
cast error formatting" to LTS
#20787