Add some more type safe buffer methods