added ToNullFunction
add cast expression support