Cast InetAddress to Inet4Address or Inet6Address to call the specific static methods

Reviewer: @andi-bigswitch @vaterlaus

Currently, the attempt to call the specific `IPv4Address.of(Inet4Address)` and `IPv6Address.of(Inet6Address)` turns out to be a recursive call without casting.