First, thank you for helping me.
I need a function that has the following signature and that creates a variable of the passed in type and then assigns that variable to the incoming value and then returns the new variable. This function should do something similar to this:
public Object CreateVariable(string value, string castTo)
IFormatProvider provider = new CultureInfo("en-US");
Object obj = Convert.ChangeType(value, castTo, provider); //Btw, this is wrong.
Again, thank you for helping me.