Is there a better/cleaner way to do this?
int stockvalue = 0; if (!Convert.IsDBNull(reader[\"StockValue\"])) stockvalue = (int)reader[\"StockValue\"]; >
int? stockValue = reader["StockValue"] == null || reader["StockValue"] == DBNull.Value ? null : (int?)reader["StockValue"];