Cast layout containers to ViewGroup