You can do it this way:
__author__ = "b.chipara"
__version__ = "2019.10.30"
import rhinoscriptsyntax as rs
import Rhino
import scriptcontext as sc
from System.Collections.Generic import List
ray = Rhino.Geometry.Ray3d(rayStart, rayVec)
newlist = List[Rhino.Geometry.GeometryBase]()
for g in geometries: newlist.Add(g)
a = Rhino.Geometry.Intersect.Intersection.RayShoot(ray,newlist,maxReflections)
rays.gh (11.2 KB)