title: Value of type '1-dimensional array of Char' cannot be converted to x.ArrayOfChar
body: <p>I have a WebMethod in a legacy service. This service is currently a .NET 3.5 built application (Visual&nbsp;Studio&nbsp;2008):</p>
  
  <pre><code>&lt;WebMethod(EnableSession:=True)&gt; _
  Public Function Login(ByVal username As String, ByVal password As Char()) As MyAppUser
  </code></pre>
  
  <p>Then from within a VB.NET MVC .NET 4.5 client (Visual&nbsp;Studio&nbsp;2012) I try to access Login. (I've changed a few variable names to not use our internal naming - so don't mind any typos - the same code works in Visual&nbsp;Studio&nbsp;2008 see below).</p>
  
  <pre><code>Dim MyWebService as WebService.WebServiceClass = New WebService.WebServiceClass()
  ....
  Dim encryptedPassword As String = EncryptString(password)
  Dim rights As WebService.MyAppUser = MyWebService.Login(user, encryptedPassword.ToCharArray())
  </code></pre>
  
  <p>The problem is that the Visual&nbsp;Studio&nbsp;2012 compiler has a problem with the encryptedPassword.ToCharArray() - giving a</p>
  
  <pre><code>Error    1    Value of type '1-dimensional array of Char' cannot be converted to 'WebService.WebServiceClass.ArrayOfChar'.
  </code></pre>
  
  <p>Within the Reference.vb from my client reference:</p>
  
  <pre><code>&lt;System.Diagnostics.DebuggerStepThroughAttribute(),  _
   System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "4.0.0.0"),  _
   System.Runtime.Serialization.CollectionDataContractAttribute(Name:="ArrayOfChar", [Namespace]:="http://tempuri.org/", ItemName:="char"),  _
   System.SerializableAttribute()&gt;  _
  Public Class ArrayOfChar
      Inherits System.Collections.Generic.List(Of Char)
  End Class
  </code></pre>
  
  <p>However, if I use the same code within a Windows .NET 3.5 web application (Visual&nbsp;Studio&nbsp;2008) it compiles and works fine. I'd like to use ASP.NET MVC to make my life easier, but I can't seem to get over this little hurdle.</p>