Added support to TREATAS function

The TREATAS function is now supported.