Error : cannot implicitly convert type \'bool?\' to \'bool\'. An explicit conversion exists (are you missing a cast?)
Code :
chkDisplay.IsChecked is of type bool?. Which means it can hold values true, false and null.
However, obj.IsDisplay is of type bool. Which means it can only hold true or false.
Hence you have to explicitly cast it to type bool. However, this will still throw an exception if, the value you are trying to cast to bool is null.
bool? nullableBool = null;
bool notNullableBool = (bool)nullableBool; //This will throw InvalidOperationException