cast db port as int