EDIT - sorry this is bad info below, I was thinking sphere (slide) cast. Raycast seems to just stop at first collision...
Not sure if this is what you are looking for, but setting the Object ID to 0 when doing the raycast will go through all the objects and not just return the first one it hits.
ObjectRayCast(objID = 0, ...)
Then you get this data:
GetObjectRayCastNumHits -> tells you how many hits the last raycast had in the last check
And you can go through the different IDs to look for your object:
GetObjectRayCastHitID -> Returns the object ID at the index for the cast hits