Automatically generate isRendererOfType in RENDER_OBJECT_TYPE_CASTS