Inherits Exception / Reference / Object
Raised when the type cast failed.
[1, "hi"][1].as(Int32) # raises TypeCastError (cast to Int32 failed)