two way conversion for int and long