Makes cast explicit to comply with 64bit builds