title: URI typed attributes in CoreData: how to query with NSPredicate
body: <p>I have a CoreData-Entity that stores an attribute called &quot;imageUrl&quot; of type &quot;URI&quot;.
  It's used to store URL's (as in Swift URL / NSURL) for eg. rendering remote images.</p>
  <p>How would I query for the string representation of an URI-type attribute?</p>
  <hr />
  <p>Example: I'd like to get all objects that match <code>&quot;http://mydomain.jpg&quot;</code> or <code>URL(string: &quot;http://mydomain.jpg&quot;)</code> to be more precise.</p>
  <p>For attributes that are &quot;String&quot;-typed this would be sufficient:</p>
  <p><code>NSPredicate(format: &quot;myStringAttribute LIKE %@&quot;, &quot;http://mydomain.jpg&quot;)</code></p>
  <p>Would the following work for URI-type attributes?</p>
  <p><code>NSPredicate(format: &quot;imageUrl LIKE %@&quot;, URL(string: &quot;http://mydomain.jpg&quot;))</code></p>