title: How to solve the error "Type provided must be an Enum. Parameter name: enumType"
body: <p>So I've been using the Pay Simple SDK. I'm getting this error. Does anyone know how to solve this?</p>
  
  <pre><code>var customerPayment = new NewCustomerPayment&lt;CreditCard&gt;
  </code></pre>
  
  <p>So my model is in the Pay Simple SDK. This is for Payment Transaction.</p>
  
  <p>Controller code:</p>
  
  <pre><code>[HttpPost]
  [ValidateAntiForgeryToken]
  public async System.Threading.Tasks.Task&lt;ActionResult&gt; Create(FormCollection formCollection) {
      string username = "jnjk";
      string apiKey = "khkh";
      string baseUrl = "https://sandbox-api.paysimple.com";
      var settings = new PaySimpleSdk.Models.PaySimpleSettings(apiKey, username, baseUrl);
  
      var paymentService = new PaymentService(settings);
  
      var customerPayment = new NewCustomerPayment&lt;CreditCard&gt;()
      {
  
          Customer = new Customer
          {
              FirstName = formCollection["FirstName"],
              LastName = formCollection["LastName"],
              BillingAddress = (Address)Enum.Parse(typeof(Address), formCollection["BillingAddress"])
          },
  
          Account = new CreditCard
          {
              CreditCardNumber = formCollection["CreditCardNumber"],
              ExpirationDate = formCollection["ExpirationDate"],
              Issuer = (Issuer)Enum.Parse(typeof(Issuer), formCollection["Issuer"])
          },
  
          Payment = new Payment
          {  
              Amount = int.Parse(formCollection["Amount"]),
              Cvv = formCollection["Ccv"]
          }
  
      };
  
      var newCustomerPayment = await paymentService.CreateNewCustomerPaymentAsync(customerPayment);
  
      return View();
  }
  </code></pre>
  
  <p>Model from sdk</p>
  
  <p>This is The Billing Address in the Customer Model..</p>
  
  <pre><code>  public Address BillingAddress { get; set; }
  </code></pre>
  
  <p>This is for Address</p>
  
  <pre><code>  public class Address : IValidatable
    {
      public Address();
      public string City { get; set; }
      public CountryCode? Country { get; set; }
      public StateCode? StateCode { get; set; }
      public string StreetAddress1 { get; set; }
      public string StreetAddress2 { get; set; }
      public string ZipCode { get; set; }
    }
  </code></pre>