Added the casts for the byte data.