add ofToDouble to ofUtils. close #1489.
Merge pull request #1809 from thiagohersan/feature-ofToDouble

add ofToDouble to ofUtils. close #1489.