if you compare different explicit methods of type-casting a variable to integer:
var y = parseInt(x,10) + 'text'; // too long, needs wrapping, needs anti-octal hack
var y = x.toFixed(0) + 'text'; // still long, and even uglier, and maybe buggy
var y = Math.floor(x) + 'text'; // long and uses Math object
var y = Number(x) + 'text'; // long
var y = +x + 'text'; // very short, but too hacky
var y = 1 * x + 'text'; // simple and short
You will see, why the last one is my favourite. Yet, i wonder, if there are any hidden issues with this method ?
Number(x)seems pretty explicit and acceptably terse (compare that todocument.getElementById!) to me.