public static final String castToString(Object value) {
        if (value == null) {
            return null;
        }

        return value.toString();
    }
from fastjson
@author Robert HG (254963746@qq.com) on 11/21/15.
lts-core/src/main/java/com/github/ltsopensource/core/json/TypeUtils.java