title: AnyObject to Array?
body: <p>I'm using <code>NSJSONSerialization</code> as so:</p>
  
  <pre><code>let twData: AnyObject? = NSJSONSerialization.JSONObjectWithData(responseData, options: NSJSONReadingOptions.MutableLeaves, error: &amp;dataError)
  </code></pre>
  
  <p>This gives me an <code>AnyObject?</code>.</p>
  
  <p>From here, I want to convert it to <code>Array&lt;Dictionary&lt;String,String&gt;&gt;</code></p>
  
  <p>I've tried all sorts, leading up to this:</p>
  
  <pre><code>var twDataArray: Array&lt;Dictionary&lt;String,String&gt;&gt;? = twData? as? Array&lt;Dictionary&lt;String,String&gt;&gt;
  </code></pre>
  
  <p>which simply gives the error:</p>
  
  <blockquote>
    <p>Type 'Array>' does not conform to protocol
    'AnyObject'.</p>
  </blockquote>
  
  <p>And putting the simpler version:</p>
  
  <pre><code>var twDataArray = twData as Array
  </code></pre>
  
  <p>gives the error:</p>
  
  <blockquote>
    <p>Cannot convert the expression's type 'AnyObject?' to type 'Array'</p>
  </blockquote>