avoid unncessary conversions in BitsToTarget