Cordless impact driver with a two types of battery