public function scopeCast($query, Caster $caster = null)
    {
        $caster = $caster ?: $this->findCaster();

        if ($this->exists) {
            return $caster->cast($this);
        }

        return $caster->cast($query->get());
    }