use non-casting integer checks