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
On this page you can test the performance of each method yourself :)
http://jsperf.com/cast-to-string/2
here, on all machines and browsers, ' "" + str ' is the fastest one, (String)str is the slowest