Case animationType to UIViewAnimationOptions to avoid a warning