How to pass Action delegate as a parameter to Invoke Code Activity?

I am trying to pass Action as a parameter to List(Of Char).ForEach method. But I am getting “Expression does not produce a value error”.

My need is loop through all characters of a string, do some conversions and add it to new string list.