Well, the answer is YES. You can convert a char to int type. In ASCII code, the numbers (digits) start from 48.
char x = '4';
int ix = x - '0';
In this case, x-’0’ is identical as
((int)x) - ((int)'0')
that means the ASCII values of the characters are subtracted from each other. Hence, x is representing a number.