If I were to receive this warning without knowing the full story, I'd be very surprised that it advises me to upcast instead of calling a method that I perceived was returning me an immutable copy of the buffer. 

Maybe we can be more specific about what seems to be the brokenness of this method in the deprecation warning?