like this?

char crap = 'a';
int othercrap = (int)crap;

othercrap would have the ascii code value of 'a' then.