Added type conversion methods to Variable.