title: convert string to number node.js
body: <p>I'm trying to convert req.params to Number because that is what I defined in my schema for year param.</p>
  
  <p>I have tried</p>
  
  <pre><code>req.params.year = parseInt( req.params.year, 10 );  
  </code></pre>
  
  <p>and</p>
  
  <pre><code>Number( req.params.year);
  </code></pre>
  
  <p>and</p>
  
  <pre><code>1*req.params.year;
  </code></pre>
  
  <p>but non of them works. 
  Do I need to install something?</p>