title: Cast Int Array to Enum Flags
body: <p>I have the following enum with flags:</p>
  
  <pre><code>[Flags]
  public enum DataFiat {
    Public = 1,
    Listed = 2,
    Client = 4
  } // DataFiat
  </code></pre>
  
  <p>And I have an int array, for example:</p>
  
  <pre><code>int[] selected = new int[] { 1, 4 }
  </code></pre>
  
  <p>How can I convert this to my enum which would become:</p>
  
  <pre><code>DataFiat.Public | DataFiat.Client
  </code></pre>
  
  <p>Thank You,
  Miguel</p>