diff --git a/src/conversions.php b/src/conversions.php
index <HASH>..<HASH> 100644
--- a/src/conversions.php
+++ b/src/conversions.php
@@ -32,7 +32,7 @@ function toBool ($val)
     $it->rewind ();
     return $it->valid ();
   }
-  return is_string ($val) ? $val == 'true' || $val == '1' || $val == 'yes' || $val == 'on' : boolval ($val);
+  return is_string ($val) ? $val == 'true' || $val == '1' || $val == 'yes' || $val == 'on' : (bool)$val;
 }
 
 /**
FIX: compatibility with PHP <I>