title: Get properties of NSManagedObject as NSDictionary
body: <p>If I have an NSManagedObject I've fetched from a context, how can I create an NSDictionary out of its dynamic properties without just copying each field into the dictionary explicitly?</p>
  
  <p>If my managed object looks like this, for example:</p>
  
  <pre><code>@implementation Track
  
  @dynamic artist;
  @dynamic group;
  @dynamic purchase_url;
  @dynamic title;
  @dynamic file_name;
  @dynamic year;
  
  @end
  </code></pre>
  
  <p>After fetching from the database, in this case, I need an NSDictionary with the same properties set to each of those @dynamic properties.</p>