conversion to boost::shared_ptr