how to convert a character number to integer in c# code example Example: c# char to int int val = (int)Char.GetNumericValue('8');