title: How to retrieve struct pointer from Go list
body: <p>I have a struct</p>
  <pre><code>type clientData struct {
      msg    Message
      connId int
  }
  </code></pre>
  <p>I'm trying to add this to a Go <a href="https://golang.org/pkg/container/list" rel="nofollow noreferrer">List</a> as such</p>
  <pre><code>l := list.New()
  l.PushBack(&amp;clientData {
      msg: Message {
         some fields  
      },
      connId: 1
  });
  
  </code></pre>
  <p>Now, how do I get back the data as a <code>*clientData</code> data type back from the List ? I tried <code>l.Front().Value</code> but that returns an interface... I'm pretty sure I don't understand the marshalling/marshalling logic for Go here...</p>