Change the type of a field