Use [ThreadStatic] class for float<->int conversion
Class was originally used in SunflowSharp but was not thread safe then. 
ThreadStatic usage seems to be quicker than original thread safe fix using BitConverter even if it does need what looks like a massive hack
to initalize a instance in each thread.