Why does this require a cast?

I have this method:
c#
public string JsonSerialize(bool? mini) {
    mini = mini == null ? true : mini;
    JsonSettings.Formatting = mini ? Formatting.None : Formatting.Indented;
    return JsonConvert.SerializeObject(this, JsonSettings);
}

Even though I've null-checked
mini
, VS is still telling me that I need an explicit cast to
bool
on
mini ? Formatting.None : Formatting.Indented


Why?
Was this page helpful?