change number type conversion

If you change a negative number to an integer you will always get zero, the the actual number