[INTERNAL] Should fix compile error for SourceFile

When loading ChecksumType, change to using C++ static cast to enum
instead of previous C-style int cast.