Convert to a datatype given in string format
问题 I have been searching for a solution for quite a while now and couldn't find anything close. What I want to achieve: I have two strings, 'a' and 'b'. String 'a' contains a datatype, for example "Boolean". String b contains a value like "1" or "False", could be anything. I want to be able to store the value of string 'b' in a variable which has the datatype of string 'a'. If I would itterate trough a list of results with the same values as given in the example the results would be as following