how to change char to int on C# code example Example: c# char to int int val = (int)Char.GetNumericValue('8');