Type assertions are not a substitute for non-null assertions(alexharri.com)
alexharri.com
Type assertions are not a substitute for non-null assertions
https://alexharri.com/blog/type-and-non-null-assertions
https://alexharri.com/blog/type-and-non-null-assertions
We banned all type assertions long time ago, and switched to type guards. I highly recommend this approach.