ensureCorrectDimensions now converts between single and double pt precision for interpolation