public function _floatval($value) { return floatval($value instanceof SandboxedString ? strval($value) : $value); }