stage 1: improve error message if error union is cast to payload (#10770)

Also: Added special error message for for `?T` to `T` casting
f5471299d8Sebsatian Keller committed on 2/10/2022, 1:35:53 AM· committed by GitHubparent1e5a494
2 files changedLine totals unavailable