Assuming you want the indices so that you can then get elements at those same indices, you can just use FilterByBoolMask to filter your elements based on the true/false values you get.