# IdP Multi-Valued Object Attribute as Expression argument

**URL:** <https://forum.inductiveautomation.com/t/idp-multi-valued-object-attribute-as-expression-argument/82256>\
**Category:** Module Development\
**Created:** [November 22, 2023, 3:23pm UTC](https://forum.inductiveautomation.com/t/idp-multi-valued-object-attribute-as-expression-argument/82256 "2023-11-22T15:23:28Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![bfreeman](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/bfreeman/32/87436_2.png) [@bfreeman](https://forum.inductiveautomation.com/u/bfreeman)\
**Post date:** [November 22, 2023, 3:23pm UTC](https://forum.inductiveautomation.com/t/idp-multi-valued-object-attribute-as-expression-argument/82256/1 "2023-11-22T15:23:28Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![bfreeman](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/bfreeman/32/87436_2.png) [@bfreeman](https://forum.inductiveautomation.com/u/bfreeman)\
**Post date:** [November 22, 2023, 10:49pm UTC](https://forum.inductiveautomation.com/t/idp-multi-valued-object-attribute-as-expression-argument/82256/2 "2023-11-22T22:49:47Z")

</div>

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

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

```
