Checks whether the current instance is equal to the given object.
Returns true if the current instance is equal to the given object, false otherwise.
The object to compare with the current instance.