castRay(Sqr) works now, finally.