title: IRONPYTHON NET4, Embedded, passing class object rather than value
body: <p>I have the python code, which is saved into test.py</p>
  
  <pre><code>def Process():
     list1 = [1, 2, 3]                       #list object                    
     return list1
  </code></pre>
  
  <p>I also have C# code </p>
  
  <pre><code>        List&lt;int&gt; list1 = new List&lt;int&gt;(new int[3]);
          var runtime = Python.CreateRuntime();
          dynamic test = runtime.UseFile(m_sFilename);
          var list2 = test.Process();
          list1 = (List&lt;int&gt;)list2;           &lt;&lt; Error
          /*
          list1[0] = list2[0];  // this code works fine but need how to
          list1[1] = list2[1];
          list1[2] = list2[2];
          */
  </code></pre>
  
  <p>When I run this I get RuntimeBinderException was unhandled</p>
  
  <blockquote>
    <blockquote>
      <blockquote>
        <p>Cannot convert type 'IronPython.Runtime.List' to 'System.Collections.Generic.List'</p>
      </blockquote>
    </blockquote>
  </blockquote>
  
  <p>How to fix this?</p>
  
  <p>Also how to pass the list into the Python?</p>