Added support to write cell data type