title: Conversion of string variable to stringProperty
body: <p>I am using javafx.<br>
  I have to convert a variable of Object type to StringProperty type.</p>
  
  <pre><code>Object v = "var";
  StringProperty var = (StringProperty) v;
  </code></pre>
  
  <p>I am not getting any compile time error. 
  But <code>java.lang.ClassCastException</code> shows up.<br>
  Thanks </p>