convert param to long/double.