title: How is the implicit cast from enum type to int possible?
body: <pre><code>#include "stdafx.h"
  #include&lt;iostream&gt;
  #include&lt;typeinfo&gt;
  
  using namespace std;
  
  enum dayOfWeek : short { M = 10, TU, W, TH, F, SA, SU };
  
  int main()
  {
      dayOfWeek d = TU;
      int u = d; // HOW ???
      return 0;
  }
  </code></pre>
  
  <p>Now could anybody explain to me how this happens? How did this implicit cast work?  </p>