Type Theories in Category Theory