Directly get object instance ID from `Variant` and implement `Variant::get_validated_object()`
#include