I have this code:
Type leftType = workItem[LeftFieldName].GetType();
I then want to declare a variable of that type:
leftTy
No, that is not possible. The type of a variable has to be known at compile time.
You can declare a variable of type object, it will be capable of storing any data type.
object