Java бросает Болеана в Int

int result = myBooleanVar ? 1 : 0;
Better Beetle