int val = (int)Char.GetNumericValue('8');
char foo = '2'; int bar = foo - '0';
using System; public class Test { public static void Main() { char a = 'c'; int answer = (int)a;//char to int convertion Console.WriteLine(answer); } }