</BUG>
}
}
}
<BUG>static void emitCast(StringBuilder builder, TypeMirror fieldType) {

builder.append('(').append(getType(fieldType)).append(") ");
}</BUG>
static String getType(TypeMirror type) {
if (type.getKind().isPrimitive()) {

if (fieldBinding.isParcel()) {
builder.addCode("org.parceler.Parcels.unwrap((android.os.Parcelable) object);\n");
} else {
emitCast(builder, fieldBinding.getType());
builder.addCode("object;\n");
}
}
}
static void emitCast(MethodSpec.Builder builder, TypeMirror fieldType) {
builder.addCode("($T)", ClassName.bestGuess(getType(fieldType)));
}
static String getType(TypeMirror type) {
if (type.getKind().isPrimitive()) {
