title: ASCII to decimal value
body: <p>Consider this below example:</p>
  
  <pre><code>char a  = '4';
  
  int c = (int)a;   // this gives the hex value of '4' which is 0x34
  </code></pre>
  
  <p>but I want the result <code>4</code> as an integer. How to do this? Just a <code>Hex2Dec</code> conversion?</p>