Here you can find the source of toBoolean(Object s)
public static Boolean toBoolean(Object s)
//package com.java2s; public class Main { public static Boolean toBoolean(Object s) { if (s == null) { return (null); }/* ww w. ja v a 2 s. c o m*/ return (new Boolean(s.toString())); } }