Added an "asString" function in mongoUtil that can set a value to be string in mongodb