Use NSParameterAssert instead of NSAssert in some cases