CPP-975 "syntax error" on function-style cast of an expression to a primitive type

(cherry picked from commit 458583bcee8f32a35789fb881acbe82027d04686)