Added casting to bam models.
0.6.0