Custom activity- outArgument

Hi,
I created a custom activity which contains a outArgument named “testval” of string type. I want to perform some string operations on that, when I tried without converting it shows an error as in the image