fn connection_id(val: &RValue) -> Option<usize>
Extract a connection ID from an argument that is either an integer (possibly with class “connection”) or a double that can be losslessly converted.