Will NSArray always return the equivalent of [AnyObject]? Even when setting the type of a string, when creating it, other objects will not necessarily know the type, if several can be assumed.
I would try to create an array of type [String] and pass it instead, or use NSPredicate, which takes arguments directly (predicateWithFormat: arguments :), and not in the array - maybe this will work?
Finally, I am not familiar with the kingdom, but the template that I found if something is not available in swift is that it is available, but there is only another way to do it. for example, is there an array of objects in RLMObject? If so, you can either do objects.filter ({$ 0.key == value}) or a full block (which allows you to debug using breakpoints, etc.), which I personally prefer to use NSPredicates.
source share