CustomDoubleObjectIF dest = null;
if (source instanceof Double) {
// check to see if the object already exists
if (destination == null) {
dest = new CustomDoubleObject();
} else {
dest = (CustomDoubleObjectIF) destination;
}
dest.setTheDouble(((Double) source).doubleValue());
return dest;