IdP Multi-Valued Object Attribute as Expression argument

Hi,

I am trying to write an expression to be used in the User Attribute Mapping configuration that takes as args a Multi-Value Object Attribute from the IdP's response.

Does anyone know how to cast that type of arg inside the execute method?

Thanks

Not sure this is the correct way, but this works:

QualifiedValue qv = expressions[0].execute();
List<String> list = (ArrayList<String>)TypeUtilities.coerce(qv.getValue(), ArrayList.class);