The CairoRenderContext represents the primary lime.graphics.Cairo instance when Cairo is the render context type of the Window.

You can convert from lime.graphics.RenderContext to CairoRenderContext directly if desired:

var cairo:CairoRenderContext = window.context;