Make inetAddress more generic so it can take different type and
constraints.