title: Unable to cast object of type 'System.Collections.Generic.List`1[System.Int32]' to type 'crmWebService.ArrayOfInt'
body: <p>I'm getting an error after sending a list to a web service.</p>
  
  <p>This is the code that is calling the web service:</p>
  
  <pre><code>Dim sProgramInterest As New List(Of Integer)    
  crmService.InsertProspectGetId(sProgramInterest.ToList)
  </code></pre>
  
  <p>But I'm getting this error.</p>
  
  <blockquote>
    <p>Unable to cast object of type 'System.Collections.Generic.List`1[System.Int32]' to type 'crmWebService.ArrayOfInt'.</p>
  </blockquote>
  
  <p>The parameter being accepted by the web service is:</p>
  
  <pre><code>ByVal sProgramInterest As List(Of Integer)
  </code></pre>