DRILL-1138: Explicit casting to boolean fails