In most places casting was easy to avoid as the variables have been casted forth and back between both data types. Anyway - the affected functions are never used by streamdev.