[BUGFIX] Missing stream_cast() in FileStreamWrapper