Is there a way to try parse a Char into an Int?

Check isdigit().