Make setType chainable.