Convert the date.replace function to be deferred
Rename ndobject.cast_udtype to ndobject.ucast