title: Casting from int to Enum still returning an int
body: <p>I am trying to cast from an int to an enum, unsuccessfully, as follows:</p>
  
  <p><strong>ENUM</strong></p>
  
  <pre><code>public enum ePriceType{
      Fixed = 1,
      Variable = 2
  }
  </code></pre>
  
  <p><strong>CAST</strong></p>
  
  <pre><code>public int priceTypeA = 2;
  public ePriceType priceTypeB = (ePriceType)priceTypeA;
  </code></pre>
  
  <p>Code runs fine, but for some reason when you check the value of priceTypeB it still shows an <code>int</code> and not an <code>ePriceType</code> which causes an error further down the code.</p>
  
  <p>Can anyone help?</p>
  
  <p><strong>UPDATE</strong></p>
  
  <p>In truth, this problem is a whole lot more complex involving the client side of a web service. I tried to simplify it as above but clearly didnt quite work and Im not sure how simplest to explain the full problem :( Thanks for your answers anyway</p>