title: Expected a value of type 'List<int>', but got one of type 'WhereIterable<int>'
body: <pre class="lang-dart prettyprint-override"><code>List&lt;int&gt; filterEvens(List&lt;int&gt; ints) {
    var foo = ints.where((n) =&gt; n.isEven) as List&lt;int&gt;;
    var bar = ints.where((n) =&gt; n.isEven).toList();
  
    return foo; // Runtime error
    // return bar; // Works
  }
  
  void main() {
    print(filterEvens([1]));
  }
  </code></pre>
  <p>When I am explicitly downcasting <code>Iterable</code> to <code>List</code> in the 1st line of above function, it throws an error:</p>
  <blockquote>
  <p>Error: Expected a value of type 'List', but got one of type 'WhereIterable'</p>
  </blockquote>