title: How can I convert LazyFilterSequence<Results<Element>> to type Results<Element>
body: <p>I have a filtered realm object which returns <code>LazyFilterSequence&lt;Results&lt;Element&gt;&gt;</code>. I need to use it as <code>Results&lt;Element&gt;</code>.
  Is there any way to convert it. Why it returns LazyFilterSequence.</p>
  <p>items object type is <code>Results&lt;Element&gt;</code> and filterList object type is <code>Object</code>.</p>
  <pre><code>let filters = filterList.menuOptions
          .compactMap { $0.isSelected ? NSPredicate(format: &quot;\($0.filter) == 1&quot;) : nil }
      
  let filtered = items.filter { item in
          //check whether item matches all filters
      if Array(filters).contains(where: { !$0.evaluate(with: item) }) {
          return false
      } else {
          return true
      }
  }
  </code></pre>