title: Convert object to a string c# xamarin forms
body: <p>I want to convert a label value (Object) to a string variable but I get an empty string.</p>
  
  <p>Here is the code.</p>
  
  <pre><code>var label = new Label
              {
  
              };
              label.SetBinding(Label.TextProperty, "Link");
              string url = label.GetValue(Label.TextProperty).toString();
  </code></pre>
  
  <p>I want to use the content of the label as a string.</p>
  
  <p>If I don't convert it the url in the label it's ok but when I convert it I get an empty string as result. Any help? How can I convert this to a string?</p>
  
  <p>Thanks in advance.</p>