class TypeCastError inherits Exception ¶ Raised when the type cast failed. [1, "hi"][1].as(Int32) # raises TypeCastError (cast to Int32 failed) Class methods¶ .new(message = "Type Cast error") ¶ View source