type to number