What is the "int" number that you are trying to convert? The largest possible int value (4 bytes) is 2147483647. A true int number cannot have more that ten digits, but a "long" variable (8 bytes) can have up to nineteen digits.
As Erel says, it would be helpful to see your code.