title: How to append dictionary in array in swift
body: <p>I have one array of dictionary and I am trying to do is get first object from array and append in my secondArray. Dictionary is <code>[String: AnyObject]</code> and array is of <code>String</code>. Here is my code in <code>didSelectRowAtIndexPath:</code></p>
  
  <pre><code>let myDictionary: [String: AnyObject] = dataArray[indexPath.row] as! [String : AnyObject]
  selectedArray.append(myDictionary)
  </code></pre>
  
  <p>But I am getting error : </p>
  
  <blockquote>
    <p>Cannot convert value of type '[String : AnyObject]' to expected argument type 'String'.</p>
  </blockquote>
  
  <p>How can I add dictionary in array?</p>