Is it possible to pass Tuples as parameters to functions that take AnyObject as the parameter?
I'm using the OneDrive SDK that allows you to pass a userState Parameter which is declared as AnyObject. The function is declared as follows:
func getWithPath(path:String, userState: AnyObject)
i'd like to call this method passing in a Tuple since I want to pass multiple values with different types like so:
getWithPath("me/skydrive", (name: "temp", callingDate: Date(), randomValue: 2345))
is it possible to pass a Tuple as a parameter where an AnyObject is expected?