There are two ways to turn the numbers entered in TextBox from the character:
Use Convert
String mystring;
Convert.TOINT32 (MyString);
2. Forced conversion
INT32.PARSE (MyString);