How do I convert a string to an integer in C#?
int a = int.Parse(myString);
or better yet, look into int.TryParse(string)
int.TryParse(string)