Use is<>() / downcast<>() for GraphicsLayer subclasses