I know this is an old thread, but I thought I'd post my solution anyway
since I couldn't find anything when I was searching for an answer. If
you do a type comparison you can successfully cast the paymentMaskedType
to a specific masked type and there...