---
layout: "default"
title: "RawRepresentable"
description: "Swift documentation for 'RawRepresentable': A type that can be converted to an associated &quot;raw&quot; type, then
converted back to produce an instance equivalent to the original."
keywords: "RawRepresentable,protocol,swift,documentation,rawValue,RawValue"
root: "/v2.0"
---

<div class="intro-declaration"><code class="language-swift">protocol RawRepresentable</code></div>

<div class="discussion comment">
    <p>A type that can be converted to