Transforming Struct to Class with Error Handling in Effect Typescript - Effect Community