Added types for double conversion