Change the data type of value