The type must be []byte. Simply convert []byte to interface {} and convert interface{} back to []byte in the same process. I cannot see any reason it will fail or something horrible has happened. 
One, I can delete the checking.
Two, just do nothing with the error.