@Override
        public String convert(final ObjectId source) {
            return source.toHexString();
        }
The type String to zoned date time converter.
support/cas-server-support-mongo-core/src/main/java/org/apereo/cas/mongo/BaseConverters.java