title: Cannot implicitly convert type system.colllections.generic
body: <p>I'm getting the following error:</p>
  
  <blockquote>
    <p>Cannot implicitly convert type 'System.Collections.Generic.List>' to 'System.Collections.Generic.List</p>
  </blockquote>
  
  <p>The code I have is:</p>
  
  <pre><code>class Check
  {
        public string Text { get; set; }
  
        public  List&lt;Check&gt; getxml()
        {
            XDocument xdoc = XDocument.Load(@"D:\Web Utf-8 Converter\Categories.xml");
  
            var list = (from p in xdoc.Descendants("Categories")
                        select p.Elements("name"));
  
            var listing = list.ToList();
  
            return listing;
        }
  }
  </code></pre>
  
  <p>This seems to me like a conversion error. But I'm not sure how to convert. Kindly assist. </p>
  
  <p>Thank you.</p>