Use getInstance
@@ -22,7 +22,7 @@ static public ASN1TaggedObject getInstance(
{
if (explicit)
{
- return (ASN1TaggedObject)obj.getObject();
+ return getInstance(obj.getObject());
}
throw new IllegalArgumentException("implicitly tagged tagged object");
