src/Type/BigIntType.php
public function decode($value, Field $field, Codec $codec = null)
    {
        if (null === $value || $value instanceof BigNumber) {
            return $value;
        }

        return new BigNumber((string) $value);
    }
public function decode($value, Field $field, Codec $codec = null)
    {
        if (null === $value || $value instanceof BigNumber) {
            return $value;
        }

        return new BigNumber((string) $value);
    }
{@inheritdoc}