Back in college one of my profs. taught us to just do x + \"\" as a quick conversion from basic types to strings.
I don\'t remember which class it was in I
In Java, for primitive types (int, double, etc.) you cannot write .toString() because the types aren't objects. This means that your options are either to write something like
x + "";
or to use
Integer.toString(x);
In C++, you cannot use x + "" to do this sort of conversion, since this will be treated as pointer arithmetic and will give you a bad pointer. Using something like boost::lexical_cast is the preferred way to do the conversion.
And... I know nothing about C#, so I won't comment on it. :-)