src/Filter/EqualTo.php
public function isValid($actual): bool
    {
        if ($this->precision == self::NORMAL) {
            return $this->expected == $actual;
        }

        if ($this->precision == self::IDENTICAL) {
            return $this->expected === $actual;
        }

        return $this->cast($this->expected) == $this->cast($actual);
    }
public function isValid($actual): bool
    {
        if ($this->precision == self::NORMAL) {
            return $this->expected == $actual;
        }

        if ($this->precision == self::IDENTICAL) {
            return $this->expected === $actual;
        }

        return $this->cast($this->expected) == $this->cast($actual);
    }
{@inheritdoc}