Use a fallback for invalid input
int.tryParse
Int and except
std.fmt.parseInt
tryparse
Int.init
Int32.TryParse
RegExp.test and Number