Converts the string into an int
Throws if the string is not an Integer.
int toInt() => int.parse(this);