Instead of type using type assertions, prefer to use local Zod parsing as needed, throw null errors, or use a ts-expect-error with a reason. Let's review any remaining type assertions after trying to remove them via the above methods.