apply identifying `type` to validator casting errors
Merge pull request #2500 from jondavidjohn/casterror-actual-error

Apply identifying `type` to validator casting errors