Here you can find the source of castInttoLong(int x)
public static long castInttoLong(int x)
//package com.java2s; //License from project: Open Source License public class Main { public static long castInttoLong(int x) { return x & 0x00000000ffffffffL; }// w w w.j av a 2s . c o m }