NSSet set = new NSSet(new NSObject[] { new NSString("hello"), new NSString("world") }); NSArray arr = NSArray.FromObjects(set.ToArray());In this example, we create an NSSet containing two NSString objects "hello" and "world". We then use the ToArray() method to convert the set into an array of objects. Finally, we create a new NSArray object from the array returned by ToArray(). Package Library: The NSSet ToArray method is part of the MonoTouch.Foundation library, which is part of the Xamarin platform.