Check type of token.