API changes in setType()