I've seen examples of this all over the place:
int i = 2;
char c = i + '0';
string s;
s += char(i + '0');
However, I have not yet seen an explanation for why adding the zero allows for the conversion.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…