Temporary fix for Google Analytics. This won't work in the long run because we're just convering ints to booleans. We should do better type validation via Reflection