title: c# : Why is a cast needed from an Enum to an INT when used in a switch statement?, enums are ints
body: <p>Can anyone tell me why i need to cast to Int from my enum</p>
  
  <pre><code>        switch (Convert.ToInt32(uxView.SelectedValue))
          {
              case (int)ViewBy.Client:
  </code></pre>
  
  <p>If i remove the cast (int) it fails and says i must use a cast.</p>
  
  <p>Here is my enum, and enums are ints.... anybody know about this?</p>
  
  <pre><code>    public enum ViewBy
      {
          Client,
          Customer
      }
  </code></pre>