experimental macro support

Duplication of the same cast that's performed in the previous method.