@Test
void castBooleanToLong() {

    final ToLong<String> toLong = CastUtil.castBooleanToLong(Objects::nonNull);
    assertNotNull(toLong);
    assertEquals(1, toLong.applyAsLong(""));
    assertEquals(0, toLong.applyAsLong(null));
}