Set type mask