Don't cast from long to int when converting base.

`NumberPrototype.ToBase` was casting from `long` to `int`, causing it to overflow for large numbers.