int theNumber = int('1' - '0');
12
char c = 'X'; int i = c; // will work fine, i will have the ASCII ( or whatever encoding you are using ) code for 'X'