ToBuiltin not working

I can’t seem to figure out why this isn’t working:

	var linePointsArray01=new Array();
	var gridPoint:RaycastHit;
	for(i=targetSize/10; i<=targetSize; i++){
		if(Physics.Raycast (forwardRay.GetPoint(i), Vector3(0,-1,0),gridPoint)){
			linePointsArray01.Push(gridPoint.point);
			}
		}
		
	var linePoints01 : Vector3[] = linePointsArray01.ToBuiltin(Vector3);
	print(linePoints01);

The console just returns Vector3[ ], but printing linePointsArray01 shows all the values as intended. Why won’t it convert to a builtin array?

It does. Builtin arrays don’t have overloaded print functions, so print just prints their type - in this case, “Vector3[ ]”.

Awesome, thanks. Printing the length and a random index verifies that it is indeed working.