Cast cache as a boolean