public static < T , S extends T > ObjectBinding < T > cast ( final ObservableValue < S > source ) { return Bindings . createObjectBinding ( source :: getValue , source ) ; }
Creates a binding that contains the same value as the source observable but casted to a type that is higher in class hierarchy .