Allow type conversion in scala <-> java bijections

Worth the performance hit for the identity case?