Added type casting to Load functions.