Have you tried casting the number to an int?