Decorator for automatically casting string inputs to their most likely Python data types.