title: How to convert NSURL to String in Swift
body: <p>How do you convert an NSURL to a String in Swift?</p>
  
  <p>The following:</p>
  
  <pre><code>var directoryURL: NSURL
  var urlString: String = nsurlObject as String
  </code></pre>
  
  <p>Throws the error: </p>
  
  <blockquote>
    <p>Cannot convert value of type 'NSURL' to type 'String' in coercion</p>
  </blockquote>