Extract :type as a constant