Int32.parse(string)
Convert.ToInt32(string)
Int32.TryParse(string, out int)
Convert.ToInt32 is better than Int32.Parse, since it return 0 rather than exception. But, again according to the requirement this can be used. TryParse will be best since it handles exception itself always.