final int ttid = trgType.getTypeId();
final AtomicValue v;
switch(ttid) {
case TypeTable.BOOLEAN_TID:
final boolean ebv = (value != 0.0 && !Double.isNaN(value));
v = new BooleanValue(ebv);
break;
case TypeTable.DOUBLE_TID:
case TypeTable.NUMERIC_TID:
v = this;
break;