private Object castError(String srctype, Class desttype) throws IOException {
throw new HproseException(srctype + " can't change to " + desttype.getName());
}
private Object castError(Object obj, Class type) throws IOException {
throw new HproseException(obj.getClass().getName() + " can't change to " + type.getName());
}