Simplified the bytesto... functions with bytestotype as proposed by @kmsquire
Removed test because now floats are not converted correctly to ints