Here you can find the source of toBoolean(final Object valueRep)
public static Boolean toBoolean(final Object valueRep)
//package com.java2s; //License from project: Open Source License public class Main { public static Boolean toBoolean(final Object valueRep) { return Boolean.parseBoolean(String.valueOf(valueRep)); }/* w w w .j a v a2 s . c o m*/ }