Implemented new "ToType" traversal functions.