Type() function.