public class FDCaster {
public static IFDValue toFDValue(IFDStackFrame frame,String name,Object value) {
if(value instanceof UDF)
return new FDUDF(frame,name, (UDF)value);
if(value instanceof Query)
return new FDQuery(frame, (Query)value);
//if(value instanceof Array)
// return new FDArray(frame,name,(Array)value);
if(value instanceof Collection)