rename toType.go to totype.go