removed String casting when storing object properties into XML