title: Razor converting enum to int inside a view
body: <p>I a razor view .I have line like bleow</p>
  
  <pre><code>&lt;option value='@{(Int16)PhoneType.Work}'&gt;@PhoneType.Work&lt;/option&gt;
  </code></pre>
  
  <p>This is an  option in a select list/dropdownlist
  In this I have an enum PhoneType.
  For text filed @PhoneType.Work works fine
  but for value field @{(Int16)PhoneType.Work is not working</p>
  
  <p>What can i do to get integer value of the enum at value field</p>