Get variable by name (string)

It might have let you drag the string, but obviously it is what is causing the error.

You can’t cast a string.

You need to look up what casting does. It is not a magical node that turns whatever you want, into other objects.

Do what I said in my earlier posts.