title: Cast NSManagedObject to subclassed object
body: <p>Is there a way to cast an NSManagedObject to a sub-classed object?</p>
  
  <p>I have <code>@interface Contact :  NSManagedObject</code> and in a generic part of my code I have an <code>NSManagedObject</code>, I would like to cast it to <code>Contact</code> to be able to access properties directly using <code>contact.firstName</code> etc... </p>
  
  <p>I am using <code>Contact *contact = myManagedObject;</code> which works at run time but I am getting the compiler warning <code>warning: incompatible Objective-C types initializing 'struct NSManagedObject *', expected 'struct Contact *'</code> that I would like to suppress.</p>