protected function castBool($args) { if (count($args) < 1) { throw new AFPUserVisibleException('noparams', $this->mCur->pos, array(__METHOD__)); } $val = $args[0]; return AFPData::castTypes($val, AFPData::DBool); }