How can I convert Bytes("1") to Int(1) using PyTeal? Assert(Btoi(Bytes("1")) == Int(1)) gives logic eval error: assert failed. That’s consistent with the warning “operations are not meant to convert between human-readable strings and numbers” from here: Data Types and Constants — PyTeal documentation.
So, if my URL is just a number (saved as Bytes) how can use it in Teal arithmetic?
If you need to convert a multidigit number, then you most likely need to extract each digit one by one (using GetByte), convert them to an integer as above, and reconstruct the resulting decimal number. With two digits (not tested but gives the idea):