i was thinking on about what you need to do .. all you need to do is cast it to an int to get the ASCII value.
ex)
Code:
int asciiVal = 0;
char letter = 'A';
//this will cast to the ascii value (int)
asciiVal = (int)letter;
This should work nice for you