pub fn exp_to_i64(expr: &Expr) -> Result<i64, DataFusionError>
Converts a DataFusion expression to an i64.