Implement Buffer toString.
Make object downcasting methods non-virtual.