title: Passing a Powershell object as a string parameter
body: <p>I am currently trying to write the following Powershell script which, in SharePoint terms, retrieves the Central Administration url (retrieved in <code>$adminUrl</code>) and then opens an Internet Explorer window with that url.  </p>
  
  <p>I'm also appending another string to <code>$adminUrl</code> before passing it to the <code>Navigate</code> method:</p>
  
  <pre><code>$adminUrl = Get-spwebapplication -includecentraladministration | where {$_.DisplayName -eq "SharePoint Central Administration v4"} | select Url
  
  $ie = New-Object -ComObject InternetExplorer.Application
  $ie.Navigate($adminUrl + "/someurl") # &lt;= Trying to pass the url here
  $ie.Visible = $true
  </code></pre>
  
  <p>But I'm getting this exception when trying to do so:</p>
  
  <pre><code>Cannot find an overload for "Navigate" and the argument count: "1".
  At \\a\setup.ps1:9 char:1
  + $ie.Navigate($adminUrl)
  + ~~~~~~~~~~~~~~~~~~~~~~~
      + CategoryInfo          : NotSpecified: (:) [], MethodException
      + FullyQualifiedErrorId : MethodCountCouldNotFindBest
  </code></pre>
  
  <p>Am I facing a casting issue here?</p>