nitc: fix casts from Objective-C to internal C