从可空对象转换为非空对象(Objective-C)

从可空对象转换为非空对象(Objective-C),objective-c,nullable,xcode6.3,Objective C,Nullable,Xcode6.3,我一直在使用Xcode 6.3中的新功能 然而,我遇到了这样一个问题 [Object doSomethingWithNonNullParam:otherObject.nullableProperty]; 如果我确信otherObject.nullableProperty不是nil,那么解决这个问题的最佳方法是什么 我认为这里的演员阵容合适吗 [对象doSomethingWithNonNullParam:(OtherObject*\u Nonnull)OtherObject.nullablePr

我一直在使用Xcode 6.3中的新功能

然而,我遇到了这样一个问题

[Object doSomethingWithNonNullParam:otherObject.nullableProperty];

如果我确信
otherObject.nullableProperty
不是
nil
,那么解决这个问题的最佳方法是什么

我认为这里的演员阵容合适吗

[对象doSomethingWithNonNullParam:(OtherObject*\u Nonnull)OtherObject.nullableProperty]