summary refs log tree commit diff
path: root/crypto/src/asn1/x509/AttributeCertificateInfo.cs
diff options
context:
space:
mode:
Diffstat (limited to 'crypto/src/asn1/x509/AttributeCertificateInfo.cs')
-rw-r--r--crypto/src/asn1/x509/AttributeCertificateInfo.cs6
1 files changed, 3 insertions, 3 deletions
diff --git a/crypto/src/asn1/x509/AttributeCertificateInfo.cs b/crypto/src/asn1/x509/AttributeCertificateInfo.cs
index d466bbd14..dde432ee6 100644
--- a/crypto/src/asn1/x509/AttributeCertificateInfo.cs
+++ b/crypto/src/asn1/x509/AttributeCertificateInfo.cs
@@ -69,11 +69,11 @@ namespace Org.BouncyCastle.Asn1.X509
 
 			for (int i = start + 6; i < seq.Count; i++)
             {
-                Asn1Encodable obj = (Asn1Encodable) seq[i];
+                Asn1Encodable obj = seq[i];
 
-				if (obj is DerBitString)
+				if (obj is DerBitString bitString)
                 {
-                    this.issuerUniqueID = DerBitString.GetInstance(seq[i]);
+                    this.issuerUniqueID = bitString;
                 }
                 else if (obj is Asn1Sequence || obj is X509Extensions)
                 {