in src/main/java/org/jetbrains/nativecerts/mac/SecurityFramework.java [158:163]
public SecKeychainRef(Pointer p) {
super(p);
if (!isTypeID(SEC_KEYCHAIN_REF_TYPE_ID)) {
throw new ClassCastException("Unable to cast to SecKeychainRef. Type ID: " + getTypeID());
}
}