The cast accessor is used to
specify the MIME media type of a resource.
It is useful to explicitly set the MIME type for the representation of a resource
when there is more than one valid form.
For example, an XML resource could be equally valid as text/xml,
text/html, text/xhtml or text/plain depending upon the context
of the response.
The cast
accessor only changes the meta data associated with a resource, it does not
change the underlying data in any way.