title: umbraco.library.NiceUrl() returns error when passing a content node id
body: <p>I have created a doctype in umbraco which has one of the following property:</p>
  
  <p><strong>Property</strong> - Case study link</p>
  
  <p><strong>Datatype</strong> - Content picker</p>
  
  <p>I need to fetch the URL of this document in a Razor macro and assign it to a hyperlink.</p>
  
  <p>Currently am doing it in this way but it's giving me an error:</p>
  
  <pre><code>@foreach (var item in @Model.OurWork){
  
            &lt;a href="@umbraco.library.NiceUrl(item.caseStudyLink)"&gt;Read case study&lt;/a&gt;               
  }
  </code></pre>
  
  <p>And here is the error I get on viewing the page:</p>
  
  <blockquote>
    <p>Error loading Razor Script OurWorkGrid.cshtml The best overloaded
    method match for 'umbraco.library.NiceUrl(int)' has some invalid
    arguments</p>
  </blockquote>
  
  <p>I have tried outputting the node id without using the niceURL() function and it works fine (outputs 1088). </p>
  
  <pre><code>&lt;a href="@item.caseStudyLink"&gt;Read case study&lt;/a&gt; 
  </code></pre>
  
  <p>results in this:</p>
  
  <pre><code>&lt;a href="/1088"&gt;Read case study&lt;/a&gt; 
  </code></pre>
  
  <p>But as soon as I put back NiceURL() function, it chokes again.</p>
  
  <p>I really don't know what am I doing wrong here!</p>