public static boolean stringToBooleanValue(String str) throws ExpressionException {
  str=StringUtil.toLowerCase(str.trim());
  if (str.equals("yes") || str.equals("true"))   return true;
 else   if (str.equals("no") || str.equals("false"))   return false;
  throw new CasterException("Can't cast String [" + str + "] to boolean");
}

public static boolean stringToBooleanValue ( String str ) throws ExpressionException { str = StringUtil . toLowerCase ( str . trim ( ) ) ; if ( str . equals ( "yes" ) || str . equals ( "true" ) ) return true ; else if ( str . equals ( "no" ) || str . equals ( "false" ) ) return false ; throw new CasterException ( "Can't cast String [" + str + "] to boolean" ) ; }
cast a string to a boolean value ( primitive value type )
