refactor(builtin/heq): merge cast and heq modules

Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>