Merge branch '317837-fix-cast-regression' into 'master'

Resolve "Apparent regression in GeneratorAdapter.java `cast` function"

Closes #317837

See merge request !189
1 job for master in 7 minutes and 33 seconds (queued for 5 seconds)
Status Job ID Name Coverage
  Test
passed #4647
build

00:07:33