Converts the value of a check (bool) to Frappé representation (0 or 1)
static int? boolToCheck(bool? boolValue) { if (boolValue == null) { return null; } return boolValue ? 1 : 0; }