Cast to User Interface

Set the variable on both at the same time.