sets type to number