-Refectored WriteValue(object)