cast content as bytes