Do a stupid cast trick to fix r set but not used warning.