Java Cast Bolean to Int

int result = myBooleanVar ? 1 : 0;
Better Beetle