Decoding `Schema.optional()` into an `Option`

Is there a built-in way to decode Schema.optional() into an Option? While keeping the encoding the same. I know there is optionalToRequired but that feels like for more complex logic. Was hoping maybe something like Schema.optional(Schema.UUID).pipe(optionalToOption)
Was this page helpful?