I am using C# and I want to convert a string to int to verify name. For example ** or 12 is not a name. I just want to convert the string into ASCI
**
12
Converting back and forth is simple:
int i = int.Parse("42"); string s = i.ToString();
If you do not know that the input string is valid, use the int.TryParse() method.
int.TryParse()