title: Convert single char into byte C++
body: <p>How do I convert a single char into byte? </p>
  
  <pre><code>typedef unsigned char byte;
  int main(int argc, char *argv[])
  {
      /* The input argv[1] is a number */
      function(byte(argv[1]));
  }
  function A(Byte b)
  {}
  </code></pre>
  
  <p>Is this the right way of conversion?</p>