Long to int converter