title: Error:Cannot implicitly convert type 'System.Collections.Generic.LinkedListNode<Edge<T>>' to 'Edge<T>'
body: <p>I am using following code for getting first element of linkedlist worklist but i am getting error on line 2</p>
  
  <blockquote>
    <p><code>Cannot implicitly convert type System.Collections.Generic.LinkedListNode&lt;Edge&lt;T&gt;&gt;' to 'Edge&lt;T&gt;'</code></p>
  </blockquote>
  
  <ol>
  <li><code>LinkedList&lt;Edge&lt;T&gt;&gt; worklist = new LinkedList&lt;Edge&lt;T&gt;&gt;();</code></li>
  <li><code>Edge&lt;T&gt; curr = worklist.First;</code></li>
  </ol>
  
  <p>according to definition of .First the above code should work. Please help me with this problem.</p>
  
  <p>The definition of class Edge is given below</p>
  
  <pre><code>private sealed class Edge&lt;T&gt;
  {
  
              public  T start;
              public  T end;
  
      /// &lt;summary&gt;
      /// Constructs a new edge between the two indicated endpoints.
      /// &lt;/summary&gt;
      /// &lt;param name="start"&gt; The edge's starting point. &lt;/param&gt;
      /// &lt;param name="end"&gt; The edge's endpoint. &lt;/param&gt;
      public Edge(T start, T end)
      {
          this.start = start;
          this.end = end;
      }
  }
  </code></pre>