ENH: Output cast in SingleValuedCostFunctionImageSource.

Make sure to cast to the output image pixel type.