title: TypeScript: error when using parseInt() on a number
body: <p>The JavaScript function <code>parseInt</code> can be used to force conversion of a given parameter to an integer, whether that parameter is a string, float number, number, etc. </p>
  
  <p>In JavaScript, <code>parseInt(1.2)</code> would yield <code>1</code> with no errors, however, in TypeScript, it throws an error during compilation saying: </p>
  
  <pre><code>error TS2345: Argument of type 'number' is not assignable to parameter of type 'string'.
  </code></pre>
  
  <p>Am I missing something here or is it an expected behaviour from TypeScript? </p>