title: Get a enum value
body: <p>I am stuck with a piece code 
  There is a object, a field of which returns an enum (getter) the field is set by a function after reading from database. For example</p>
  
  <pre><code>Enum fiscalperiond
  {
      Num1 = 12;
      Num2 = 13;
  }
  
  Class A
  {
  
      Public Fiscalperiod
      {
          NumberOfFiscalPeriod {get;set;}
      }
  }
  </code></pre>
  
  <p>Now I want to do this how do I do it</p>
  
  <pre><code>A a = new A();
  
  int k = a.NumberOfFiscalPeriod;
  </code></pre>