This adds a convenience COGL_OBJECT macro for casting CoglObject subclasses to (CoglObject *) pointers.