Ray cast doesn't validate hit in Animation Nodes
The Ray Cast BVHTree node takes a Start and a Direction, not an End. To compute the ray direction vector from the line, you can subtract the start and end of the line to get the direction.