asURL = (value) => {
  try {
    return new URL(value).toString()
  } catch (_) {
    return null
  }
}
Attempts to turn cast given value into URL.
Return either string instance or `null`.
@param {any} value
@returns {string|null}