Converts this to a Point.
Throws if x or y is null.
Point<double> toPoint() { assert(x != null); assert(y != null); return Point<double>(x!, y!); }