Set type for 'num' option.