code: @SuppressWarnings("unchecked")
      public T toObject(byte[] bytes) {
          try {
              return (T) new ObjectInputStream(new ByteArrayInputStream(bytes)).readObject();
          } catch(IOException e) {
              throw new SerializationException(e);
          } catch(ClassNotFoundException c) {
              throw new SerializationException(c);
          }
      }
docs: Transform the given bytes into an object.
  
  @param bytes The bytes to construct the object from
  @return The object constructed