Convert List<T> to List<object>
<p>I have a problem with the generic class. I have something like this:</p>

<pre><code>public abstract class IGroup&lt;T&gt; : IEnumerable where T : class {

    protected List&lt;T&gt; groupMembers;
    protected List&lt;IGameAction&gt; groupIGameActionList;

    public IGroup() {
        groupMembers = new List&lt;T&gt;();

        groupIGameActionList = new List&lt;IGameAction&gt;();
        //groupIGameActionList.Add(new DieGameAction(groupMembers));
    }
}
</code></pre>

<p>And second class:</p>

<pre><code>class DieGameAction : IGameAction {

    List&lt;object&gt; gameObjectList;

    public DieGameAction(List&lt;object&gt; objectList) {
        gameObjectList = objectList; 
    }
}
</code></pre>

<p>I don't know how to cast or convert <code>groupMembers</code> in commented line. This doesn't work because it can not be converted (<code>List&lt;T&gt;</code> to <code>List&lt;object&gt;</code>). So how can I do it?</p>
