class -> type