updated to cast ruby array to NSArray type intead so that I can use in cocoa args