how to type cast string to in c++ code example Example: int to string c++ #include<string> string s = to_string(int_val);