int64_t field is nil after assigning an enum value

Entity: ContactRecord

@property (nonatomic) int64_t contactType;


enum contactType{

contactTypeCustomer = 0,

contactTypeVendor = 1,

contactTypeRestaurantTableSupplier = 2,

contactTypeReclaimedWoodSupplier = 3,

contactTypeHardwoodFlooringSupplier = 4

};


enum contactType contactType = (enum contactType)[[CoreDataManager sharedManager]contactTypeFromString:contactTypeString];

self.currentContactRecord.contactType = contactType;

Replies

Sorry, hit return on Title and it saved.

The issue is that I assign an int64_t value in my ContactRecord.contactType, but after this, the actual value stored there is nil. Funny this is this has worked fine for months and just yesterday, started to fail. How can nil even be in an int64_t value? On a new record, it initializes to zero.