Como transformar um CHAR para CED para ASCII em C

int a_as_int = (int) 'a';
Jolly Jay