Now that it can propagate the type, we must explicitly cast to GObject* to assign it, otherwise gcc shouts.