Add built-in function type()