change type of memory-value.