Allow Java 7+ casts from Object to primitive types. Java 7 allows casting from Object to primitive types as in Object o = 5; int i = (int) o; Bug: issue 8749. Change-Id: Id02964ead4dc5e79a36d4ad184a388286d766311