You don't, a Long
/ long
/ Integer
/ int
is a number, a number does not having leading zeros. Only a string representation of a number may have leading zeros.
If you absolutely need the leading zeros and the number 0001 is different from 001 then you are not dealing with numbers but just with strings that look like numbers and you should not convert it to a long in the first place.