Can I convert a string into a Variable in UiPath?

Are you trying an assignement where under the key the variable is set?
myDict(“Topic”) = in_Topic

for working with dictionaries also have a look here: