title: JavaScript C Style Type Cast From Signed To Unsigned
body: <p>how to type cast a number in javascript?</p>
  
  <pre><code>a = (unsigned int)atoi(arg1);
  b = (unsigned int)atoi(arg2);
  </code></pre>
  
  <p>Assuming that a and b can be signed.</p>
  
  <p>I want to convert a 4 byte signed integer into a 4 byte unsigned integer.</p>
  
  <p>I know there is no such thing as type casting or signed/unsigned in javascript. I am looking for an easy to understand algorithm.</p>