Is cheesecake a cake or a pie? Is cheesecake technically a pie or a cake?

I'm curious as to why. Are there solid definitions of what makes a dessert a cake or a pie?
Alton Brown and an Elvis impersonator called it a custard pie.