odl casting to double