Double d = Double.parseDouble(object.toString());
//转int
int intBalance =   d==null ? 0 : d.intValue();
//转double
Double d = Double.parseDouble(object.toString());
double intBalance =  d==null ? 0 : d;