title: Cannot convert value of type LazyMapRandomAccessCollection
body: <p>I am trying to make an old app written in Swift 2 fresh, updated to the most recent features and most of all, converted to Swift 3 in order to prepare for iOS 11 and Swift 4 (even if it's already late).</p>
  
  <p>I have a few errors left after the translation process, but here is the one I can't fix.</p>
  
  <p>Here is the error, coming from my refresh <code>favorites</code> method:</p>
  
  <pre><code>fileprivate func checkFavorites() { 
      if !DataUtils.isBackgroundRefreshInProgress() {
        let ids = favoritesTableViewController!.favoriteCityList?.map({ $0.id })
        if let ids = ids, ids.count &gt; 0 {
            DataUtils.refreshCity(ids) { () -&gt; Void in
                self.favoritesTableViewController.refresh()
            })
        }
      }
    }
  </code></pre>
  
  <p>Here are some prototypes and informations concerning variables:</p>
  
  <pre><code>var favoriteCityList: Results&lt;City&gt;?
  </code></pre>
  
  <p>Obviously you will notice that I am using Realm.</p>
  
  <p>And here is the prototype of the method <code>refreshCity</code>:</p>
  
  <pre><code>class func refreshCity(cityIds: [Int], withHandler: @escaping (() -&gt; Void)) {}
  </code></pre>
  
  <p>This is the error I got at this line:</p>
  
  <pre><code>DataUtils.refreshCity(ids) { () -&gt; Void in
  </code></pre>
  
  <blockquote>
    <p>Cannot convert value of type <code>'LazyMapRandomAccessCollection&lt;Results&lt;City&gt;, Int&gt;' to expected element type Int</code></p>
  </blockquote>
  
  <p>What should I change in my prototype method when I am using <code>List&lt;&gt;</code> or <code>Result&lt;&gt;</code> container?</p>