BindingEnvironment env = context.getEnv();
Node value = env.getGroundVersion(args[0]);
TypeMapper tm = TypeMapper.getInstance();
RDFDatatype type = tm.getTypeByName(PrintUtil.expandQname(args[2].toString()));
Node cast = Node.createLiteral(value.getLiteral().getValue().toString(),null,type);
env.bind(args[1],cast);
return type.isValid(value.getLiteral().getValue().toString());
}
}