Can't cast 2nd Enum value to int?
<p>I don't get this.  I was able to cast my first enum value to int but not the second?</p>

<pre><code>public enum PayPalTransactionType
{
    Authorization = 0, // Debit
    Capture = 1, // Credit
    Refund = 2,
    Void = 3
}

public string GetPayPalTransCode(PayPalServiceBase.PayPalTransactionType payPalTransactionType)
{
    string actionCode = string.Empty;

    switch (payPalTransactionType)
    {
        case (int)PayPalServiceBase.PayPalTransactionType.Authorization:
            actionCode = "Debit";
            break;
        case (int)PayPalServiceBase.PayPalTransactionType.Capture:
            actionCode = "Credit";
            break;
    }

    return actionCode;
}
</code></pre>

<p>on my 2nd case statement I get this casting error:</p>

<blockquote>
  <p>Cannot implicitly convert type <code>int</code>
  to <code>PayPalTransactionType</code>. An
  explicit conversion exists (are you
  missing a cast?)</p>
</blockquote>
