summary refs log tree commit diff
path: root/crypto/src/asn1/x509/IetfAttrSyntax.cs
diff options
context:
space:
mode:
Diffstat (limited to 'crypto/src/asn1/x509/IetfAttrSyntax.cs')
-rw-r--r--crypto/src/asn1/x509/IetfAttrSyntax.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/crypto/src/asn1/x509/IetfAttrSyntax.cs b/crypto/src/asn1/x509/IetfAttrSyntax.cs
index 024c8dd68..a59877163 100644
--- a/crypto/src/asn1/x509/IetfAttrSyntax.cs
+++ b/crypto/src/asn1/x509/IetfAttrSyntax.cs
@@ -25,9 +25,9 @@ namespace Org.BouncyCastle.Asn1.X509
         {
             int i = 0;
 
-            if (seq[0] is Asn1TaggedObject)
+            if (seq[0] is Asn1TaggedObject taggedObject)
             {
-                policyAuthority = GeneralNames.GetInstance(((Asn1TaggedObject)seq[0]), false);
+                policyAuthority = GeneralNames.GetInstance(taggedObject, false);
                 i++;
             }
             else if (seq.Count == 2)