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