const_cast for register_unhandled_data_set_handler