I tried int.parse, and convert class to convert a string to int.
int.parse,
While I\'m converting. I\'m losing the 0 in the beginning which i don\'t want.
Although this is a old thread, but this can also help:
// convert to big integer var bigIntBits = BigInteger.Parse(intNumber); int indexOfOne = intNumber.IndexOf('1'); string backToString = new string('0', indexOfOne) + bigIntBits.ToString();