Observable.Cast<TResult> Method

March 22, 2012

Casts values to the given type.

Namespace:  Microsoft.Phone.Reactive
Assembly:  Microsoft.Phone.Reactive (in Microsoft.Phone.Reactive.dll)

public static IObservable<TResult> Cast<TResult>(
	this IObservable<Object> source

Type Parameters



Type: System.IObservable<Object>

Return Value

Type: System.IObservable<TResult>
Returns IObservable<T>.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IObservable<Object>. When you use instance method syntax to call this method, omit the first parameter.

Windows Phone OS

Supported in: 7.1, 7.0

Windows Phone