Returns this Rat as an int.
Throws if this Rat is not an integer, or if the integer is too big to fit in an int.
int toInt() => toBigInt().toInt();