Add missing GtkSwitch to cast function.