Apex Cast String to Boolean

Boolean a = false;
if(String.isNotBlank(params.get('b'))){

a = Boolean.valueOf(params.get('b')); [METODO 1]

a = (Boolean) JSON.deserialize(params.get('b'), Boolean.class); [METODO 2]
}