public static <T extends Serializable> T deserializeAndCheckObject(final byte[] object, final Class<T> type) {
        return deserialize(object, type);
    }
Decode and serialize object.

@param <T>    the type parameter
@param object the object
@param type   the type
@return the t
@since 4.2
core/cas-server-core-util-api/src/main/java/org/apereo/cas/util/serialization/SerializationUtils.java