See [this comment](https://d.puremagic.com/issues/show_bug.cgi?id=9565#c3). Just using `toInterger` will print incorrect diagnostic message, even it is rare case.