Connect to ALL elements of Catgory

Quick question, i want to use Data Shapes Drop down to choose between Pipes and Ducts, then i want to connect this to “All Element of Category” node but am getting an error …

what node should i use?
code snippet and error show below

error

managed to get to work by using Category.ByName node