nm = ["mystrings","myints"]
tps = (String,Int64)
expr = :(DataFrame($nm .= $tps))
eval(expr)
ERROR: MethodError: Cannot `convert` an object of type Type{String} to an object of type String
I didn’t use eval above because I think it’s a bad idea. Is there any reason why you think it would be necessary in order to do what you’re trying to do?