Co-elsing value to be a boolean