CheckIfSqlCommand(IDbCommand cmd) Do not cast unnecesserily