Returns a Dart int for the given JSNumber.
If the JSNumber is not an integer value, throws.
external int get toDartInt;