Add support for type parameters so that a flusher no longer needs to perform a type assertion when accessing the buffer's content.