(subnet addresses whose(((it as string) of it) is greater than “10.4.0.0”) of ip interfaces of network)
The issue is that “Subnet Addresses” returns a plural object, so you cannot operate on it directly with “as string”. This: ((it as string) of it) seems equivalent, but it is not because it does the “as string” operation to each of the ipv4 address objects individually instead of as a whole.
also, this may actually work better:
(subnet addresses whose(((it as string as version) of it) is greater than “10.4.0.0” as version) of ip interfaces of network)