I have a long string and I would like to semi-uniquely represent it as a bigint. Ideally I'd just take the hash, but presto hash functions seem to want to return "varbinary", and I can't find a function to convert a varbinary into a bigint.
If I write:
cast(xxhash64(cast('asdf' as varbinary)) as bigint)
I get an error saying I can't cast a varbinary to a bigint.