[RFC] fixes #1109

ToInt64() fails on 32bit machines.

@100GPing100 Can you look at this, and if this does not break the issue you tried to solve here: https://github.com/MahApps/MahApps.Metro/commit/ce2aef800c170f2715c9c3f8dd01d4917e58f10e