use Glib::RefPtr<destination_type>::cast_dynamic(source_refptr)
or cast_static if you can guarantee that the cast is valid, does not require adjustment for multiple/virtual inheritance, and don't want the (probably insignificant) overhead of a checked cast.