cast to string properly