FEmitter::CastToScalar

Casts the given primitive value to a scalar preserving the same ScalarKind.