upcast

Does an upcast, but throws instead of returning null if it fails

T
upcast
(
T
R
)
(
R r
)
if (
is(T : R)
)
Suggestion Box / Bug Report