csharp char to int
Code Example - csharp char to int
int val = (int)Char.GetNumericValue('8');
c convert char to int
int i = (int)(c - '0');