Cast layouts to true/false