don't typecast value to a string in `isInt()`