toType method renamed to as