Is type conversion faster for Objects or Primitives in Javascript?
<p>Given these two examples:</p>

<pre><code>var myNumber = 10; //primitive
</code></pre>

<p>and</p>

<pre><code>var myNumber = new Number(10); //object
</code></pre>

<p><strong>Which performs faster when a type conversion occurs?</strong></p>

<pre><code>var myString = myNumber.toString(); //convert to string
</code></pre>

<p>I assume that object type conversion is faster since the primitive gets converted to an object to respond to the expression and then back to primitive again.</p>
