Narrowing a Schema.Any to Schema.Class in TypeScript - Effect Community