Fixed int and string casting in command line arguments handler in server.