remove a macro while casting