title: System.InvalidCastException : Unable to cast object of type 'System.Linq.OrderedEnumerable`2[System.String,System.Int32]' to type [System.Int32]'
body: <p>This is the task: A sequence of non-empty strings stringList is given.
  Get a sequence of ascending sorted integer values equal to the lengths of the strings included
  in the stringList sequence.
  This is my code:</p>
  <pre><code>public static IEnumerable&lt;int&gt; Task2(IEnumerable&lt;string&gt; stringList)
      {
  
          var result = from item in stringList
                     orderby item.Length descending
                     select item;
  
          return (IEnumerable&lt;int&gt;)result;
          
      }
  </code></pre>
  <p>But when I try to start tests, I have this message: System.InvalidCastException : Unable to cast object of type 'System.Linq.OrderedEnumerable<code>2[System.String,System.Int32]' to type 'System.Collections.Generic.IEnumerable</code>1[System.Int32]'.
  What's wrong???</p>