Android: simple types conversion