Converts a boolean value to an integer (0 or 1).
value
static int boolToInt(bool value) { return value ? 1 : 0; }