diff --git a/src/ArgumentParsing/Results/Errors/ParseError.cs b/src/ArgumentParsing/Results/Errors/ParseError.cs
index 0d92e8f..eec2b56 100644
--- a/src/ArgumentParsing/Results/Errors/ParseError.cs
+++ b/src/ArgumentParsing/Results/Errors/ParseError.cs
@@ -29,7 +29,7 @@ private protected ParseError(string messageFormat)
///
public sealed override bool Equals(object? obj)
- => obj is ParseError error && Equals(error);
+ => Equals(obj as ParseError);
///
public abstract override int GetHashCode();