public function cast($value)
    {
        if (isset($value) && !is_resource($value)) {
            return $this->dontCast($value);
        }
        
        return $value;
    }
public function cast($value)
    {
        if (isset($value) && !is_resource($value)) {
            return $this->dontCast($value);
        }
        
        return $value;
    }
public function cast ( $ value ) { if ( isset ( $ value ) && ! is_resource ( $ value ) ) { return $ this -> dontCast ( $ value ) ; } return $ value ; }
Cast value to a resource

@param mixed $value
@return resource|mixed
Cast value to a resource