Change type of fields