make ToMap work with any ApiSeries
replace casting with float literals