Here you can find the source of objectToBoolean(Object Obj)
public static boolean objectToBoolean(Object Obj)
//package com.java2s; //License from project: Open Source License public class Main { public static boolean objectToBoolean(Object Obj) { String CadBooleana = objectToString(Obj); Boolean booleano = new Boolean(CadBooleana); return booleano; }/*from w w w . j a v a2 s. c o m*/ public static String objectToString(Object Obj) { String Str = ""; if (Obj != null) { Str = Obj.toString(); } return Str; } }