For example
fn encode_unsigned_to_i64(data: &[u64], k_pt: usize) -> i64
The function first maps each unsigned value to signed representation in plaintext modulus and then casts to i64. This is different from directly casting unsigned integer to signed integer.