The only way to keep previous zeros is to not convert it to a number.
The number has no leading zeros, because it contains only the value, not a string representation of the value.
If you want to convert it to a number and then convert back to a string, recreating the previous zeros, you can use your own format:
string formatted = number.ToString("00000");
Or for a dynamic number of digits:
string formatted = number.ToString(new String('0', numberOfDigits));
Guffa
source share