@Override
public Object getValue(PageContext pc) throws PageException {
// if ref == null, it is val based Casting
if(ref==null) return Caster.castTo(pc,type,strType,val);
if(ref instanceof Variable && "queryColumn".equalsIgnoreCase(strType)) {
Variable var=(Variable) ref;
return Caster.castTo(pc,type,strType,var.getCollection(pc));
}
return Caster.castTo(pc,type,strType,ref.getValue(pc));
}