Add some optimized conversions
Merge pull request #10 from timholy/pull-request/83cef206

Add some optimized conversions