Add type cast to ag_window_open_chart_tab() call