* Fix some compiler warnings for bad casting in some functions in the file