That must be a basic mistake, but I can't see what is wrong in this code:
.... object is some NSManagedObject ....
let eltType = ((object.valueForKey("type")! as! Int) == 0) ? .Zero : .NotZero
At compile time, I get this message:
Ambiguous reference to member '=='
Comparing an Int to 0 doesn't seem ambiguous to me, so what am I missing?