do not crash when the ASN is given as an int instead as a str