to be able to mimic this functionality (dynamic_cast) in other interfaces like python, r etc. please provide a static function called 'obtain_from_generic'. see examples for it in Labels.