DateTime castToDateTime(boolean superAccess) throws PageException {
// magic function
PageContext pc = ThreadLocalPageContext.get();
if(pc!=null) {
Member member = getMember(pc,KeyConstants.__toDateTime,true,superAccess);
//Object o = get(pc,"_toDateTime",null);
if(member instanceof UDFPlus) {
UDFPlus udf = (UDFPlus)member;
if(udf.getReturnType()==CFTypes.TYPE_DATETIME && udf.getFunctionArguments().length==0) {
return Caster.toDate(_call(pc, KeyConstants.__toDateTime,udf, null, new Object[0]),pc.getTimeZone());