Added explicit casting to vectors.
Merge pull request #28 from krzat/vector_casting

Add explicit casting to vectors.