rm: dict lookup

Explicitly typecast required swift headers to int