Geometry.DistanceTo_AS

The input data isn’t a Dynamo geometry yet, but an AS object. You need to pull the geometry from the AS object as a start.

Post the entire graph image with the output of the proceeding nodes expanded. Do so by following the instructions here: How to export a graph image [Correctly]