Error : cannot implicitly convert type \'bool?\' to \'bool\'. An explicit conversion exists (are you missing a cast?)
Code :
I'm facing your question when I'm using the null check operator ?.:
if (!RolesList?.Any()) //Not accepted: cannot convert bool? to bool
So I'm using this instead
if (RolesList?.Any() != true)
//value is null or false
In your case you should set it like so:
obj.IsVisible = chkDisplayStuff.IsChecked ?? false;