Double d = (Double)model.getValueAt(r, c);
Number d = (Number)model.getValueAt(r, c);
    public void writeRecords(DbfTableModel model) throws IOException {        int rowCount = model.getRowCount();        int columnCount = model.getColumnCount();        for (int r=0; r<=rowCount-1; r++) {            _leos.writeByte(32);            for (int c=0; c<=columnCount-1; c++) {                byte type = model.getType(c);                String value = null;                if (type == DbfTableModel.TYPE_NUMERIC) {                    Object obj = model.getValueAt(r, c);                    if (obj instanceof Double) {                        Double d = (Double)model.getValueAt(r, c);                        value = d.toString();                    } else {                        value = "";                    }                } else {                    value = (String)model.getValueAt(r,c);                }                int length = model.getLength(c);                _leos.writeString(value, length);            }        }    }