I thought this was a thing, but maybe it's not?

Referencing the contains modifier docs, it shows how contains can be used on lists (aka simple arrays), but not on an array with named keys.

So my question is... can I use contains in this context? It currently doesn't work with named arrays.

In my YAML:

cast_list:
  actor_id: abc-123
  actor: Emma Thompson
  role: Mrs. Potts

In my template:

{{ if (cast_list | contains:abc-123) }}
    You are in the cast!
{{ /if }}