Added type cast between string and scalar values.