[cs] only cast default arguments if needed (avoid boxing)