Support NSNumber in setOptions.