You can convert an integer to ASCII code by casting as show below:

 char c = 'A';
   int i = (int) c; // i will have the value 65 decimal