Automatically convert bigints to ints