Returns the state value for stateName if it exists and is a Long or can be coerced to a Long, or NULL otherwise.