The toggle was added before boolean IDProperties were added. The fix is
to support both integer types and boolean types, similar to a recent
change for other inputs, 9f30555faf.
Pull Request: https://projects.blender.org/blender/blender/pulls/111433