so maybe the proper fix would be to use the right type in the beginning ?
instead of casting it around at every line ?