Internally, an address is just a 32-byte array.
So just ensure that the first argument is the 32 bytes of the address (without checksum and with base32 conversion).
See Overview - Algorand Developer Portal (where the actual 32-byte address is called “public key” in this document) and How to convert public key back to address in js sdk - #3 by fabrice