Obama voices cautious optimism on the economy