title: How to find NSDocumentDirectory in Swift?
body: <p>I'm trying to get path to Documents folder with code:</p>
  
  <pre><code>var documentsPath = NSSearchPathForDirectoriesInDomains(NSSearchPathDirectory:0,NSSearchPathDomainMask:0,true)
  </code></pre>
  
  <p>but Xcode gives error: <code>Cannot convert expression's type 'AnyObject[]!' to type 'NSSearchPathDirectory'</code></p>
  
  <p>I'm trying to understand what is wrong in the code.</p>