Gets the value of the current xtd::any_object object if it has been assigned a valid underlying value.