title: Swift 3: Different kind of elements in an array are not acceptable
body: <p>Up until Swift 2.2 I was able to do this:</p>
  
  <pre><code>for each in [myUIButton,myUILabel] {
   each.hidden = true
  }
  </code></pre>
  
  <p>but in Swift 3 this is not acceptable because label, button etc are not the same kind of element. I have already changed line 2 to <strong>each.isHidden = true</strong></p>
  
  <p>It throws "<strong>Heterogeneous collection literal...</strong>" error. When you fix it by adding [Any], it throws "<strong>Cast 'Any' to 'AnyObject..</strong>" error.</p>
  
  <p>Is there an easy fix to this problem?</p>