Fixed getType function - renamed to getTypeT