Understanding analog pins in pinMode
pinMode is actually declared as void pinMode(uint8_t, uint8_t);  in arduino.h

A0 is a defined as a number (somewhere depending on the actual hardware), on an Uno/Nano it translates to 14, and when executing pinMode it translates to the appopriate bit in the correct DDRx register.