protected function convertToInt($value) { $converted_value = (int) $value; return $value !== (string) $converted_value ? $value : $converted_value; }