title: Spinner<Integer> bind to IntegerProperty
body: <p>I want to use a FX8 <code>Spinner</code> control, but I want to bind the source to an <code>IntegerProperty</code></p>
  
  <pre><code>int MIN = 0;
  int MAX = 5000;
  int STEP = 500;
  IntegerProperty integerProperty = new SimpleIntegerProperty();
  
  Spinner&lt;Integer&gt; spinner = new Spinner&lt;&gt;(MIN, MAX, STEP);
  </code></pre>
  
  <p>I understand the binding is set via binding to the <code>valueProperty</code> in the Value Factory. However this expects <code>Property&lt;Integer&gt;</code> and I cannot find a way to cast between <code>IntegerProperty</code> and <code>Property&lt;Integer&gt;</code>. </p>
  
  <p>Obviously the below generates a compiler error:</p>
  
  <pre><code>spinner.getValueFactory().valueProperty().bindBidirectional(integerProperty);
  </code></pre>
  
  <p>Do I need to manually assign a change listener for both directions? Surely there is a neater solution using the <code>valueProperty</code>, this cannot have been an unforeseen situation.</p>