There are various methods available for explicitly converting a string to an integer, such as:
Convert.ToInt16();
Convert.ToInt32();
Convert.ToInt64();
int.Parse();
But all these methods will throw a FormatException, if the input string contains non-numeric characters. For t...