Here you can find the source of castLong(Object o)
public static Long castLong(Object o)
//package com.java2s; public class Main { public static Long castLong(Object o) { Long value = null;/* w ww . j a v a 2 s . c o m*/ if (o != null) { value = Long.parseLong(o.toString()); } return value; } }