Check type in boolean templates