Check if arg is an integer.