Fix exception

SqlReliableCommand cannot be casted to DbCommand directly, but we can
cast it, to SqlCommand, a class that derives from DbCommand.