protected function castToPhp($value, $column)
    {
        if ($value !== null && $this->hasCast($column) && !$this->isIgnoreCast($value)) {
            $value = $this->toPhpType($value, $this->casts[$column]);
        }

        return $value;
    }
protected function castToPhp($value, $column)
    {
        if ($value !== null && $this->hasCast($column) && !$this->isIgnoreCast($value)) {
            $value = $this->toPhpType($value, $this->casts[$column]);
        }

        return $value;
    }
protected function castToPhp ( $ value , $ column ) { if ( $ value !== null && $ this -> hasCast ( $ column ) && ! $ this -> isIgnoreCast ( $ value ) ) { $ value = $ this -> toPhpType ( $ value , $ this -> casts [ $ column ] ) ; } return $ value ; }
Cast column value to PHP type

@param mixed $value
@param string $column
@return mixed
@throws \Exception
Cast column value to PHP type