Explicitly case serialized classes to bytestrings before loading them.