@SuppressWarnings("unchecked")
    public static <E> void serialize(E object, OutputStream os) throws IOException {
        mapperFor((Class<E>)object.getClass()).serialize(object, os);
    }
Serialize an object to an OutputStream.

@param object The object to serialize.
@param os The OutputStream being written to.
core/src/main/java/com/bluelinelabs/logansquare/LoganSquare.java