title: Swift closure as values in Dictionary
body: <p>I'm trying to use an Objective-C library which expects a <code>NSDictionary</code> as its return type. Within the <code>NSDictionary</code>, I can return values of any type, including blocks.</p>
  
  <p>I cannot figure out if there is a way to write an analogous swift method that returns a Dictionary with a closure or a string as a possible value type.</p>
  
  <p>I can't use <code>AnyObject</code> as the value type for the dictionary so this doesn't work:</p>
  
  <pre><code>Dictionary&lt;String,AnyObject&gt; = ["Key":{(value:AnyObject) -&gt; String in return value.description]
  </code></pre>
  
  <p>I get a <code>Does not conform to protocol error</code> from the compiler regarding the closure and <code>AnyObject</code>.</p>
  
  <p>Is there a higher level type or protocol that both closures and basic types adhere to that I can use as the value type in a Dictionary?</p>