You can prevent a panic on failed type conversion here by using `ip, ok = ipAddr.(string)`.