// If the incoming ValueSource is a DECIMAL, *and* it has a cache value (ie an BigDecimalWrapper), then
// we can just copy the wrapper into the output. If the incoming is a DECIMAL with bytes (its raw form), we
// can only copy those bytes if the TInstance match -- and super.tryFromObject already makes that check.
if (in.getType().typeClass() instanceof TBigDecimal && in.hasCacheValue()) {
BigDecimalWrapper cached = (BigDecimalWrapper) in.getObject();
out.putObject(new BigDecimalWrapperImpl(cached.asBigDecimal()));
return true;
}
return super.tryFromObject(context, in, out);
}