asString

Returns this class instance's primitive wire representation.

This differs from the toString method because that method is primarily for debugging and generally doesn't throw.

Throws

if this class instance's value does not have the expected primitive type.