Does 'decodedKey' still have a .gh?  If so, I'd prefer to skip the .asInstanceOf.