:: Read a => String -> Maybe a package:ihaskell

The type-safe cast operation