title: c++ Why can't I use static_cast to convert char* to int?
body: <pre><code>number = static_cast&lt;int&gt;(argv[1]);
  </code></pre>
  
  <p>Error: Using static_cast to convert from char* to int not allowed.</p>
  
  <p>I've tried finding out why on google and I just can't seem to find it.
  Also, I don't want to get the ascii value, because argv[1] is a number.</p>
  
  <p>e.g. ./prog 15</p>
  
  <p>cout &lt;&lt; number; //want it to print 15.</p>