GROOVY-6966: Type cast methods for Collection classes.