Check out example codes for "how can convert string to int csharp". It will help you in understanding the concepts better.

Code Example 1

string userInput = Console.ReadLine();
int convert;
Int32.TryParse(userInput, out convert);  // Converting String to int

Code Example 2

Int16.Parse("100");

Learn ReactJs, React Native from akashmittal.com