Workaround of a Jack front-end bug related to type inference

- ECJ 4.7 M3 fails to infer type in some cases, thus add a cast
to the expected type to workaround the bug.

Test: m -j32 (release bullhead userdebug)

Bug: 33371837

(cherry picked from commit 918efe9ba819b7a03729b6f6ef7ead2f70a20447)

Change-Id: I50326ddd753cc4bf6d1dfd349a046626d7e1fc33
2 files changed