Sounds like we could use a pattern similar to checkNotNull()
int valueCount = Preconditions.checkCastToInt(valueCountL, "valueCountL");