I found three ways to cast a variable to String in JavaScript. I searched for those three options in the jQuery source code, and they are all in use
String
According to this JSPerf test, they differ in speed. But unless you're going to use them in huge amounts, any of them should perform fine.
For completeness: As asawyer already mentioned, you can also use the .toString() method.
.toString()