<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def from_raw(self, raw: RawScalar) -> Optional[ScalarValue]: """Return a cooked value of the receiver type. Args: raw: Raw value obtained from JSON parser. """

        if isinstance(raw, str):
            return raw