Allow coercion of buffer to bytes