cast to doubles