bindCastTo
This is the same as bindTo, but casting this
to Property<T>
, suppressing the unchecked cast. I believe this is fine in all cases.
This lets us, for example bind a Property<Any>
to a StringProperty, or an OptionalStringProperty to a StringProperty.
T : The value type of the Source
.