Multiplatform version of readDataByType.
Converts a List (of size 4) to an Int, taking endianness into account.
Converts a List (of size 4) to a UInt, taking endianness into account.
Converts a List (of size 8) to a ULong, taking endianness into account.