Default connection to the correct return type