Do not cast to Double. Rather use Number.