(PHP 5 >= 5.3.0, PHP 7)
streamWrapper::stream_cast — Retrieve the underlaying resource
$cast_as) : resource
This method is called in response to stream_select().
stream_select() is calling
stream_cast() is called for other uses.
Should return the underlying stream resource used by the wrapper, or