Type mismatch, cannot assign “array of NSString” to “array of RemObjects.Elements.RTL.String” [/Users/JohnMoshakis/Documents/develop/Island/ConsoleApplication2/Program.pas (15)]
← Phase Resolving Bodies finished, took 0.532s.
On Island (unless using ToffeeV2), RemObjects.Elements.RTL.String maps to Island’s native cross-platform string type, System.String.
While individual System.String and NSStrings can be seamlessly cast to one another (at a cost), they are distinct types, and so an array (or a List) of them, will not be compatible, as each individual String would have to be cast/converted, and that’d not happen in the case of casting a container.
You’ll need sometng explicit such as myNSStringArray.Cast<System.String() or myNSStringArray.Cast(s -> s as System.String).