Casting Object List<String>

Hey,

I’m in a situation where im trying to build a data structure for a task.
My initial idea is to add the process data to a dictionary and pass it through the process while retrieving the data needed.

My dictionary is of type <String, Object>.
I have a list of properties initiated like this: new List(of String).
I add properties as string using the Add To Collection activity.
Then i try to iterate of over the properties using a for each, which is where the problem is.

How can i cast from Object back to List(of String) with values from the dictionary to use in a For Each activity?

thanks

1 Like

Hi @nilschr

Does this property of the For Each activity help you solve the issue?
I am not sure if I understood it correctly.
image

Hi,

I figured i could use DirectCast, doing something like this:

myList = DirectCast(myDictionary(“myListObject”), List(Of String, String))

1 Like

It works fo me

2 Likes