Core::addUnit(..): static_cast<Dir>(..) -> Dir(..)