Removed warnings by explicitly casting to `u8` for controllers

Same here.