refactor(library/logic/core/cast): cleanup
refactor(library/logic/core/eq): cleanup