Added simple ToInt32 and ToInt64 methods to make it easier to work with these types accross 32 and 64 bit systems

Signed-off-by: Toon Schoenmakers <nighteyes1993@gmail.com>