fixed cast to changing the type of the base variable
fixed cast to changing the type of the base variable

linus-sherrill/maptk,linus-sherrill/maptk,linus-sherrill/maptk,linus-sherrill/maptk,linus-sherrill/maptk