Implemented typecasting for property values in contact saving method