typecasting at server and client working for update pins and comments