def METHOD_NAME(self) -> Union[Version, LegacyVersion]:
    """Object to_version attribute.
    Returns:
        version: Version object which able to be compared with other Version object.
    References:
        1. Version object - https://github.com/pypa/packaging
        2. Attribute info - https://xsoar.pan.dev/docs/integrations/yaml-file#version-and-tests
    """
    return parse(self.get("toversion", DEFAULT_CONTENT_ITEM_TO_VERSION))