title: Is there an alternative to using static_cast<int> all the time?
body: <p>I have an enumeration called <code>StackID</code>, and throughout my code I have to <code>static_cast</code> it to <code>int</code> quite a bit - e.g.</p>
  
  <pre><code>StackID somestack;
  int id = static_cast&lt;int&gt;(somestack);
  </code></pre>
  
  <p>Is there a shorthand alternative to doing this cast over and over again ? I have heard of "implicit" conversions - is that something I can use here?</p>
  
  <p>(Possibly related to <a href="https://stackoverflow.com/questions/3475152/why-cant-i-increment-a-variable-of-an-enumerated-type">this question</a>)</p>