Add cast to `GtkWidget*` to match previous behaviour