Fixed sanity check for integer type