}
final boolean mayCastable = TypeTable.isMayCastable(type, trgType);
if(mayCastable) {
if(trgType instanceof DateTimeBaseType) {
final DateTimeBaseType dtType = (DateTimeBaseType) trgType;
return (T) dtType.createInstance(value);
} else {
final String sv = stringValue();
final String literal = trgType.processWhitespace(sv);
try {
return (T) trgType.createInstance(literal, type, dynEnv);