public function _intval($value) { return intval($value instanceof SandboxedString ? strval($value) : $value); }