change value type of tslice