Added connection flags and casting operators for the result field