Is there a way to type cast an int var to a char[] variable. i need to take an integer variable and use it in part of a file name infile.open(filename) but i need to concatenate it with other char[].