Updated a convenience method on NSManagedObject category.