Literal conversion from short or byte to char

Try:

char randomVals[8];
randomVal[0] = var1;
randomVal[1] = var2;
randomVal[2] = var3;
//...