Charging a RC car battery without a hobby charger

Didn’t read it was an NiMH battery, so if your makita is NiMH you could probably just hook it up. But they are probably NiCd, I don’t know if there is a difference between charging NiMH and NiCd