setAllowedTypes work with "bool"