Remove useless GstObject* casts.