ensure returns of GObject::Object are casted to the instances GType