Merge pull request #9480 from leoetlino/saturating-cast MathUtil: Add SaturatingCast to cast floats more safely