geberal casting to long to remove compiler warnings