src/org/nutz/castor/Castors.java
public String castToString(Object src) {
        try {
            return castTo(src, String.class);
        }
        catch (FailToCastObjectException e) {
            return String.valueOf(src);
        }
    }
public String castToString(Object src) {
        try {
            return castTo(src, String.class);
        }
        catch (FailToCastObjectException e) {
            return String.valueOf(src);
        }
    }
public String castToString ( Object src ) { try { return castTo ( src , String . class ) ; } catch ( FailToCastObjectException e ) { return String . valueOf ( src ) ; } }
将一个 POJO 转换成字符串

@param src
源对象
@return 字符串
将一个 POJO 转换成字符串