public function stream_cast($castAs)
    {
        if ($this->fileHandle !== null && $castAs & STREAM_CAST_AS_STREAM) {
            return $this->fileHandle;
        } else {
            return false;
        }
    }
public function stream_cast($castAs)
    {
        if ($this->fileHandle !== null && $castAs & STREAM_CAST_AS_STREAM) {
            return $this->fileHandle;
        } else {
            return false;
        }
    }
public function stream_cast ( $ castAs ) { if ( $ this -> fileHandle !== null && $ castAs & STREAM_CAST_AS_STREAM ) { return $ this -> fileHandle ; } else { return false ; } }
Retrieve the underlying resource

@param int $castAs Can be STREAM_CAST_FOR_SELECT when stream_select()
is calling stream_cast() or STREAM_CAST_AS_STREAM when stream_cast()
is called for other uses.
@return resource|bool
Retrieve the underlying resource