title: Swift error when trying to access Dictionary: `Could not find member 'subscript'`
body: <p>This won't compile:
  <img src="https://i.stack.imgur.com/1hP4X.png" alt="enter image description here">
  I've tried a couple different things; different ways of declaring the Dictionary, changing its type to match the nested-ness of the data. I also tried explicitly saying my <code>Any</code> was a collection so it could be subscripted. No dice.</p>
  
  <pre><code>import UIKit
  
  
  import Foundation
  
  class CurrencyManager {
  
      var response = Dictionary&lt;String,Any&gt;()
      var symbols = []
  
  
      struct Static {
          static var token : dispatch_once_t = 0
          static var instance : CurrencyManager?
      }
  
      class var shared: CurrencyManager {
          dispatch_once(&amp;Static.token) {  Static.instance = CurrencyManager() }
          return Static.instance!
      }
  
      init(){
          assert(Static.instance == nil, "Singleton already initialized!")
          getRates()
  
      }
  
  
      func defaultCurrency() -&gt; String {
  
          let countryCode  = NSLocale.currentLocale().objectForKey(NSLocaleCountryCode) as String
          let codesToCountries :Dictionary = [ "US":"USD" ]
  
          if let localCurrency = codesToCountries[countryCode]{
              return localCurrency
          }
  
          return "USD"
  
      }
  
      func updateBadgeCurrency() {
  
          let chanCurr = defaultCurrency()
  
          var currVal :Float = valueForCurrency(chanCurr, exchange: "Coinbase")!
  
          UIApplication.sharedApplication().applicationIconBadgeNumber = Int(currVal)
  
      }
  
      func getRates() {
          //Network code here
          valueForCurrency("", exchange: "")
      }
  
      func valueForCurrency(currency :String, exchange :String) -&gt; Float? {
          return response["current_rates"][exchange][currency] as Float
      }
  
  
  }
  </code></pre>